home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-06 | 2.4 KB | 137 lines | [TEXT/EDIT] |
- // Font.h
- // © Copyright 1984 Consulair Corp, All Rights Reserved.
- // Portions © Copyright Apple Computer, Inc: 1982, 1983, 1984
- // Stanford University, SUMEX project: 1984
- // Requires Macdefs.h Quickdraw.h
-
- #ifndef FontLoaded
-
- #ifndef QuickdrawLoaded
- #include "quickdraw.h"
- #endif
-
- #define FontLoaded
-
- // Definitions
-
- #define systemFont 0
- #define applFont 1
- #define newYork 2
- #define geneva 3
- #define monaco 4
- #define venice 5
- #define london 6
- #define athens 7
- #define sanFran 8
- #define toronto 9
-
- /* add constants for new fonts */
-
- #define cairo 11
- #define losAngeles 12
- #define times 20
- #define helvetica 21
- #define courier 22
- #define symbol 23
- #define taliesin 24
- #define kanji 25
-
- #define propFont 0x9000
- #define fixedFont 0xB000
- #define fontWid 0xACB0
-
- #define normalStyle 0
- #define boldStyle 1
- #define italicStyle 2
- #define underlineStyle 4
- #define outlineStyle 8
- #define shadowStyle 16
- #define condenseStyle 32
- #define extendStyle 64
-
- // Types and structures
-
- // typedef short Style; in Quickdraw.h
-
- typedef struct
- {
- short ascent;
- short descent;
- short widMax;
- short leading;
- } FontInfo;
-
-
- /* STRUCTURE DEFINED IN QUICKDRAW.H
-
- typedef struct
- {
- short errNum;
- Handle fontHandle;
- char bold;
- char italic;
- char ulOffset;
- char ulShadow;
- char ulThick;
- char shadow;
- char extra;
- char ascent;
- char descent;
- char widMax;
- char leading;
- char unused;
- Point numer;
- Point denom;
- } FMOutRec;
-
- typedef FMOutRec * FMOutPtr;
- */
-
- struct __FI
- {
- short family;
- short size;
- char face;
- char needBits;
- short device;
- Point numer;
- Point denom;
- };
-
- #define FMInput struct __FI;
-
- typedef struct __FR
- {
- short fontType;
- short firstChar;
- short lastChar;
- short widMax;
- short kernMax;
- short nDescent;
- short fRectMax;
- short chHeight;
- short owTLoc;
- short ascent;
- short descent;
- short leading;
- short rowWords;
- /*
- short bitImage[rowWords,chHeight];
- short locTable[];
- short owTable[];
- */
- };
-
- #define FontRec struct __FR;
-
- /* Functions returning other then integer */
-
- #define SwapFont (FMOutPtr)SwapFont
-
- #endif
-
-
-
-
-
-